import request from "@/utils/request";

export default {
  // getPageList(page, limit) {
  //   // console.log("-------------------");
  //   return request({
  //     url: `/front/stu/teacher/list/${page}/${limit}`,
  //     method: "get"
  //   });
  // },
  // getById(id) {
  //   return request({
  //     url: `/front/stu/teacher/get/` + id,
  //     method: "get"
  //   });
  // },
  changePassword(id, oldPw, newPw) {
    return request({
      url: `/api/ucenter/member/changepw/${id}/${oldPw}/${newPw}`,
      method: "post"
    });
  },
  changeEmail(id, mail, code) {
    return request({
      url: `/api/ucenter/member/changemail/${id}/${mail}/${code}`,
      method: "post"
    });
  }
};
